package reflect;

public class ArgsDemo {
    public static void main(String[] args) {
        doSome(1);
        doSome(1,"one");
        doSome(1,"one","two");
        doSome(1,"one","two","three");
        doSome(1,"one","two","three","four");
        doSome(1,"one","two","three","four","five");

    }

    //String...     变长参数
    public static void doSome(int a,String... args){
        System.out.println(args.length);
    }
}
